var express = require('express');
var router = express.Router();
var adminController = require('../controller/AdminController');

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
}).post('/login', function(req, res, next) {
  adminController.login(req,res);
});

module.exports = router;
